package com.ruoyi.web.mapper;
import com.ruoyi.web.dto.ChargingRecordsDto;
import org.apache.ibatis.annotations.Mapper;
import com.ruoyi.web.entity.ChargingRecords;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lqc
 * @since 2024-02-01
 */
@Mapper
public interface ChargingRecordsMapper extends BaseMapper<ChargingRecords> {
    /**
     * 查询充电记录
     *
     * @param id 充电记录主键
     * @return 充电记录
     */
    public ChargingRecordsDto selectChargingRecordsById(Long id);

    /**
     * 查询充电记录列表
     *
     * @param chargingRecords 充电记录
     * @return 充电记录集合
     */
    public List<ChargingRecordsDto> selectChargingRecordsList(ChargingRecords chargingRecords);

    /**
     * 新增充电记录
     *
     * @param chargingRecords 充电记录
     * @return 结果
     */
    public int insertChargingRecords(ChargingRecords chargingRecords);

    /**
     * 修改充电记录
     *
     * @param chargingRecords 充电记录
     * @return 结果
     */
    public int updateChargingRecords(ChargingRecords chargingRecords);

    /**
     * 删除充电记录
     *
     * @param id 充电记录主键
     * @return 结果
     */
    public int deleteChargingRecordsById(Long id);

    /**
     * 批量删除充电记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteChargingRecordsByIds(Long[] ids);
}
